#include "SLT.h"
#include<stdio.h>
#include<stdlib.h>
void test1() {
	SLTDataType* plist = NULL;
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPrint(plist);
	SListPushFront(&plist, 7);
	SListPushFront(&plist, 8);
	SListPushFront(&plist, 9);
	SListPushFront(&plist, 10);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPopFront(&plist);
	SListPrint(plist);
    SLTDataType*pos=SListFind(plist, 8);
	SListInsertAfter(pos, 999);
	SListPrint(plist);
	SLTDataType* pos2 = SListFind(plist, 10);
	SListInsertAfter(pos2, 10);
	SListPrint(plist);
	SLTDataType* pos3 = SListFind(plist, 5);
	SListInsertAfter(pos3, 55);
	SListPrint(plist);
	SLTDataType* pos4 = SListFind(plist, 10);
	SListInsertAfter(pos4, 9);
	SListPrint(plist);
	SLTDataType* pos5 = SListFind(plist, 999);
	SListInsertAfter(pos5, 9);
	SListPrint(plist);
	SLTDataType* pos6 = SListFind(plist, 999);
	SListErase(&plist, pos6);
	SListPrint(plist);

}
int main() {


	test1();
	return 0;
}